package asteroids.expression;
import asteroids.expression.BooleanComparator.Compatibility;
import asteroids.model.programs.*;


public class Greater extends BooleanComparator {

	public Greater(Expression left, Expression right) {
		super(left,right);
	}
	
	@Override
	public boolean getValue(Program program){
		this.updateArguments(program);
		if(!(this.comp==Compatibility.NUMERIC)){
			return false;
		}else{
			return (((NumericExpression)outArg1).getValue(program) > ((NumericExpression)outArg2).getValue(program));
		}
	}
}
	
	
